package codeforces;

import java.util.Scanner;

public class Watermellon {
	
	public static void main(String[] args) {
		Scanner scanIn = new Scanner(System.in);
		int n = scanIn.nextInt();
		
		if(n % 2 == 0 && n > 2) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
	
}
